package com.tian.mapper;

import com.tian.entity.RoleMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMenuMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RoleMenu record);

    RoleMenu selectByPrimaryKey(Integer id);

    List<RoleMenu> selectAll();

    int updateByPrimaryKey(RoleMenu record);


    List<RoleMenu> selectByRoleId(Integer roleId);

    void deleteByRoleId(Integer roleId);

    void saveBatch(List<RoleMenu> roleMenuList);
}